package com.qf.ssm.controller.advice;

import com.qf.ssm.dto.R;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
@ResponseBody
public class MyControllerAdvice {

    public R processException(Exception e){
        return R.setError();
    }
}
